
<%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.List,com.model.Guess"%>

<div id="container">
    <jsp:include page = "header.jsp" />

    <div id ="content" style="height:440px">


        <h1> Guess Details </h1>


        <% List<Guess> guessList = (List<Guess>) request.getAttribute("viewguess");

        int currentGuessIndex = guessList.size() - 1;
        Guess currentGuess = guessList.get(currentGuessIndex);

        %>




        <table align="center" class="table_format" cellpadding="20" cellspacing="20">

            <tr>
                <th>Guess Category</th>
                <td><%=currentGuess.getGuessCategory()%></td>
            </tr>

            <tr>
                <th>Guess</th>
                <td><%=currentGuess.getGuessContent()%></td>
            </tr>

            <tr>
                <th>Guess Created By</th>
                <td><%=currentGuess.getGuessCreatedBy()%></td>

            </tr>

            <tr>
                <th>Guess Created Date</th>

                <td><%=currentGuess.getCurrentDateTime()%></td>
            </tr>

            <tr>
                <th>Guess Expires On</th>
                <td><%=currentGuess.getGuessExpiryDate()%></td>

            </tr>



        </table>



    </div>

    
    <jsp:include page= "footer.jsp" />

</div>